package com.lxs.item;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient//开启服务发现客户端，
@EnableFeignClients//启用feign客户端；
@EnableCircuitBreaker//开启断路器功能
//@ SpringCloudApplication 可以代替@EnableCircuitBreaker @EnableDiscoveryClient
public class LegouItemServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(LegouItemServiceApplication.class, args);
    }

}
